<!--
 * @Author: tianhao
 * @Date: 2022-12-30 18:06:32
 * @LastEditTime: 2023-01-07 18:00:29
 * @LastEditors: tianhao
 * @Description: 
 * @FilePath: \dcollege\src\views\task\zuoye.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
  <div class="top">
    <var-icon name="chevron-left" :size="30" class="ret" @click="fanHui()" />
    <div class="title1">我的作业</div>
  </div>
  <var-tabs
    class="choose"
    color="rgb(244,245,249)"
    active-color="black"
    inactive-color="rgb(123, 121, 121)"
    indicator-color="rgb(173, 191, 255)"
    indicator-size="5px"
    v-model:active="active"
  >
    <var-tab>待完成</var-tab>
    <var-tab>已完成</var-tab>
  </var-tabs>
  <div class="sch">
    <svg
      t="1672721018422"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="2693"
      width="25"
      height="25"
    >
      <path
        d="M862.609 816.955L726.44 680.785l-0.059-0.056a358.907 358.907 0 0 0 56.43-91.927c18.824-44.507 28.369-91.767 28.369-140.467 0-48.701-9.545-95.96-28.369-140.467-18.176-42.973-44.19-81.56-77.319-114.689-33.13-33.129-71.717-59.144-114.69-77.32-44.507-18.825-91.767-28.37-140.467-28.37-48.701 0-95.96 9.545-140.467 28.37-42.973 18.176-81.56 44.19-114.689 77.32-33.13 33.129-59.144 71.717-77.32 114.689-18.825 44.507-28.37 91.767-28.37 140.467 0 48.7 9.545 95.96 28.37 140.467 18.176 42.974 44.19 81.561 77.32 114.69 33.129 33.129 71.717 59.144 114.689 77.319 44.507 18.824 91.767 28.369 140.467 28.369 48.7 0 95.96-9.545 140.467-28.369 32.78-13.864 62.997-32.303 90.197-54.968 0.063 0.064 0.122 0.132 0.186 0.195l136.169 136.17c6.25 6.25 14.438 9.373 22.628 9.373 8.188 0 16.38-3.125 22.627-9.372 12.496-12.496 12.496-32.758 0-45.254z m-412.274-69.466c-79.907 0-155.031-31.118-211.534-87.62-56.503-56.503-87.62-131.627-87.62-211.534s31.117-155.031 87.62-211.534c56.502-56.503 131.626-87.62 211.534-87.62s155.031 31.117 211.534 87.62c56.502 56.502 87.62 131.626 87.62 211.534s-31.118 155.031-87.62 211.534c-56.503 56.502-131.627 87.62-211.534 87.62z"
        fill="#bfbfbf"
        p-id="2694"
        data-spm-anchor-id="a313x.7781069.0.i0"
        class="selected"
      ></path>
    </svg>
    <input class="search" type="text" placeholder="搜索" />
  </div>
  <var-tabs-items v-model:active="active">
    <var-tab-item>
      <a href="#"
        ><div class="jingxuan">
          <div class="title3">第三次实验报告</div>
          <div class="time">2022/12/30 19:00-22:00</div>
          <var-icon name="chevron-right" class="tubiao" color="black" />
          <div class="start">开始作业</div>
        </div></a
      >
      <a href="#"
        ><div class="jingxuan">
          <div class="title3">第三次实验报告</div>
          <div class="time">2022/12/30 19:00-22:00</div>
          <var-icon name="chevron-right" class="tubiao" color="black" />
          <div class="start">开始作业</div>
        </div></a
      >
      <a href="#"
        ><div class="jingxuan">
          <div class="title3">第三次实验报告</div>
          <div class="time">2022/12/30 19:00-22:00</div>
          <var-icon name="chevron-right" class="tubiao" color="black" />
          <div class="start">开始作业</div>
        </div></a
      >
    </var-tab-item>
    <var-tab-item>
      <a href="#"
        ><div class="jingxuan">
          <div class="title3">第三次实验报告</div>
          <div class="time">2022/12/30 19:00-22:00</div>
          <var-icon name="chevron-right" class="tubiao" color="black" />
          <div class="start">开始作业</div>
        </div></a
      >
      <a href="#"
        ><div class="jingxuan">
          <div class="title3">第三次实验报告</div>
          <div class="time">2022/12/30 19:00-22:00</div>
          <var-icon name="chevron-right" class="tubiao" color="black" />
          <div class="start">开始作业</div>
        </div></a
      >
    </var-tab-item>
  </var-tabs-items>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();

const active = ref(0);
function fanHui() {
  router.go(-1);
}
</script>

<style lang="less" scoped>
.top {
  width: 100%;
  height: 60px;
  border-bottom: none;
}
.ret {
  float: left;
  margin-top: 30px;
}
.title1 {
  font-size: 20px;
  position: absolute;
  margin-top: 30px;
  margin-left: 150px;
}
.sch {
  width: 95%;
  height: 35px;
  margin-left: 10px;
  margin-top: 10px;
  background-color: rgb(220, 220, 223);
  border-radius: 20px;
  .icon {
    float: left;
    margin: 5px auto auto 10px;
  }
  .search {
    background-color: rgb(220, 220, 223);
    width: 280px;
    height: 30px;
    border: 0;
    outline: none;
    font-size: 16px;
    margin: 1px auto auto 3px;
  }
}
.choose {
  --tab-font-size: 15px;
  --tabs-indicator-weight: 5px;
}
a {
  text-decoration: none;
}
.jingxuan {
  width: 95%;
  height: 100px;
  background-color: white;
  border-radius: 10px;
  margin-left: 10px;
  margin-top: 10px;
}
.title3 {
  position: absolute;
  margin: 20px auto auto 10px;
  color: black;
}
.time {
  position: absolute;
  color: rgb(123, 121, 121);
  margin: 60px auto auto 10px;
  font-size: 10px;
}
.tubiao {
  float: right;
  margin: 20px 10px auto auto;
}
.start {
  width: 60px;
  height: 18px;
  background-color: rgb(66, 106, 237);
  border-radius: 10px;
  font-size: 10px;
  text-align: center;
  color: white;
  float: right;
  margin-top: 60px;
  margin-right: -10px;
}
</style>
